import request from '@/config/axios'
import { update } from 'lodash-es'


export interface MaterialVO {

}


export const supplierApi = {
  // 供应商新增
  create: async (data: data) => {
    return await request.post({ url: `/erp/supplier/create`, data })
  },
 // 供应商列表
 pageList: async (params: any) => {
  return await request.get({ url: `/erp/supplier/page`, params })
},
 // 删除供应商列表
 delete: async (data: any) => {
  return await request.delete({ url: `/erp/supplier/delete?id=`+data, })
},
 // 获取详情
 details: async (data: any) => {
  return await request.get({ url: `/erp/supplier/get?id=`+data, })
},
 // 修改
 update: async (data: any) => {
  return await request.put({ url: `/erp/supplier/update`,data, })
},

}
